﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAL;

namespace BLL
{
    public class LoaiHangController
    {
        tbLoaiHang obj = new tbLoaiHang();
        public DataTable bllDSLoaiHang()
        {
            return obj.dalDSLoaiHang();
        }
        public bool bllThemLH(string tenlh, string mota)
        {
            bool res;
            obj.Tenlh = tenlh;
            obj.Mota = mota;
            res = obj.dalThemLH();
            return res;
        }
        public bool bllSuaLH(string malh, string tenlh, string mota)
        {
            bool res;
            obj.Malh = malh;
            obj.Tenlh = tenlh;
            obj.Mota = mota;
            res = obj.dalSuaLH();
            return res;
        }
        public bool bllXoaLH(string malh)
        {
            bool res;
            obj.Malh = malh;
            res = obj.dalXoaLH();
            return res;
        }
    }
}
